set GCC32="C:\MinGW\bin"
set GCC64="c:\MinGW64\bin"

%GCC32%\gcc -o ..\lib\ni32.dll -shared -Wall -D_JNI_IMPLEMENTATION_ -DWIN32_WINNT=0x0500 -DWINVER=0x0500 -Wl,--kill-at -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" -O2 keccs_hitTheHay_core_NativeInterface.c -lpowrprof -luser32
%GCC32%\strip ..\lib\ni32.dll

%GCC64%\x86_64-w64-mingw32-gcc.exe -o ..\lib\ni64.dll -shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" -O2 keccs_hitTheHay_core_NativeInterface.c -lpowrprof -luser32
%GCC64%\x86_64-w64-mingw32-strip.exe ..\lib\ni64.dll